import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ArticleItem from '@/components/ArticleItem'

// // 方案一：完整导入
import Vant from 'vant'
import 'vant/lib/index.css'
import 'vant/lib/index.less'
Vue.use(Vant)

// 方案二：自动按需导入
// import { Toast, Button, Tabbar, TabbarItem, NavBar, Form, Field } from 'vant'

// Vue.use(Tabbar)
// Vue.use(TabbarItem)
// Vue.use(NavBar)
// Vue.use(Form)
// Vue.use(Field)
// Vue.use(Button)
// Vue.use(Toast)

Vue.config.productionTip = false

Vue.component('ArticleItem', ArticleItem)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
